import { API_CONFIG } from "../config/index.js"
import  request from "../api/index.js"


export const getUsersAllList = () =>{
    /*
        {
            username: username,
            password: password
        }
        ==>简写位{username,password}
    */
    return request(API_CONFIG.userAllListApi,{},"POST",2000)
}
export const delUserHandler = (id) =>{
    /*
        {
            username: username,
            password: password
        }
        ==>简写位{username,password}
    */
    return request(API_CONFIG.deluserapi,{id},"POST",2000)
}

export const addUserHandler = (data) =>{
    /*
        {
            username: username,
            password: password
        }
        ==>简写位{username,password}
    */
    return request(API_CONFIG.adduserapi,data,"POST",2000)
}